import requests


class IhrmLoginApi(object):
    @classmethod
    def login(cls, req_data_json):
        response = requests.post(url="https://ihrm-java.itheima.net/api/sys/login", json=req_data_json)
        return response


if __name__ == '__main__':
    req_json = {"mobile": "13800000002", "password": "929itheima.CN032@.20250609"}
    resp = IhrmLoginApi.login(req_json)
    print(resp.json())
